<?php
/**
 * ProjectName: Grapes.
 * Created by LemonZ.
 * FileName: Base.php
 * Date: 2019/2/13
 * Time: 22:36
 * Description:
 */

namespace app\common\controller;


use think\Controller;

class Base extends Controller
{
    protected function initialize()
    {
        parent::initialize();
        // 定义错误等级
        error_reporting(E_ALL ^ E_NOTICE);
        //初始化配置参数，用于在模板中使用
        $this->assign('params',config('params.'));
    }
}